<?php
$this->load->view('mem/u_header');
$this->load->view('mem/u_panel_v');
?>
<table id="viewprofile" width="80%">
<caption>Your Profile</caption>

<tr>
	<td>
	<table id="systemuser" width="100%">
		<tr>
			<td rowspan="4" width="200px"><!-- img-->
			<?php
			if($cf['p_avatar'] && strlen($profile['memprofile']['p_avatar'])> 10){
				echo '<img src="'.base_url().'upload/memupload/'.$profile["memprofile"]["p_avatar"].'" title="avatar" />';
			}
			else
			{
				echo "no avatar";
			}
			?></td>
			<td>Username : <?=$profile['memsystem']['username']?></td>
		</tr>
		<tr>
			<td>Email : <?=$profile['memsystem']['email']?></td>
		</tr>
		<tr>
			<td>Signup : <?=$profile['memprofile']['signupdate']?></td>
		</tr>
		<tr>
			<td>Class : <?=$this->member->SetUserRank($profile['memsystem']['userrank'])?></td>
		</tr>
	</table>
	</td>
</tr>
<tr>
	<td>
	<?php
	echo $this->member->showProfile($profile,FALSE);
	?>
	</td>
</tr>

	</table>
<?php
$this->load->view('mem/u_footer');
?>